<!DOCTYPE html>
<html>
<head>
    <title>原生js验证</title>
    <meta charset="utf-8"/>
</head>
<body>
    <ul id="myul">
        
    </ul>


</body>
<script>
let arr=["春天","夏天","秋天","冬天"];

//1、获取元素 ul
const myul=document.getElementById("myul");
//2、循环创建li标签
for(let i=0;i<arr.length;i++){
    const myli=document.createElement("li");
    //4、将数据追加到li标签中
    myli.innerHTML=arr[i]
    //3、将创建的li标签添加到ul中
    myul.appendChild(myli)
}


</script>

</html>